package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维修记录对象 tmc_property_maintenance
 *
 * @author ruoyi
 * @date 2021-03-31
 */
public class TmcPropertyMaintenance extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private int publicuserId;

    /**
     * 用户姓名
     */
    @Excel(name = "用户姓名")
    private String username;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String userphone;

    /**
     * 问题描述
     */
    @Excel(name = "问题描述")
    private String description;

    /**
     * 期望上门时间
     */
    @Excel(name = "期望上门时间")
    private String expectedtime;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date Createtime;


    /**
     * 状态。0新建1已分配2已完成
     */
    @Excel(name = "状态。0新建1已分配2已完成")
    private Long state;

    /**
     * 维修人员ID
     */
    @Excel(name = "维修人员ID")
    private int clientId;

    /**
     * 维修人员姓名
     */
    @Excel(name = "维修人员姓名")
    private String clientName;

    /**
     * 分配时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "分配时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date distributetime;

    /**
     * 完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date completetime;
    /**
     * 房屋位置
     */
    @Excel(name = "房屋位置")
    private String houseinfoName;

    private int houseinfoId;

    private List<TmcMaintenanceAttach> AttachList;
    private List<TmcMaintenanceAttach> CompleteAttachList;

    public List<TmcMaintenanceAttach> getCompleteAttachList() {
        return CompleteAttachList;
    }

    public void setCompleteAttachList(List<TmcMaintenanceAttach> completeAttachList) {
        CompleteAttachList = completeAttachList;
    }

    public List<TmcMaintenanceAttach> getAttachList() {
        return AttachList;
    }

    public void setAttachList(List<TmcMaintenanceAttach> attachList) {
        AttachList = attachList;
    }

    public int getHouseinfoId() {
        return houseinfoId;
    }

    public void setHouseinfoId(int houseinfoId) {
        this.houseinfoId = houseinfoId;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setPublicuserId(int publicuserId) {
        this.publicuserId = publicuserId;
    }

    public int getPublicuserId() {
        return publicuserId;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public void setUserphone(String userphone) {
        this.userphone = userphone;
    }

    public String getUserphone() {
        return userphone;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setExpectedtime(String expectedtime) {
        this.expectedtime = expectedtime;
    }

    public String getExpectedtime() {
        return expectedtime;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public Long getState() {
        return state;
    }

    public void setClientId(int clientId) {
        this.clientId = clientId;
    }

    public int getClientId() {
        return clientId;
    }

    public void setDistributetime(Date distributetime) {
        this.distributetime = distributetime;
    }

    public Date getDistributetime() {
        return distributetime;
    }

    public void setCompletetime(Date completetime) {
        this.completetime = completetime;
    }

    public Date getCompletetime() {
        return completetime;
    }

    public void setHouseinfoName(String houseinfoName) {
        this.houseinfoName = houseinfoName;
    }

    public String getHouseinfoName() {
        return houseinfoName;
    }


    public Date getCreatetime() {
        return Createtime;
    }

    public void setCreatetime(Date createtime) {
        Createtime = createtime;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("publicuserId", getPublicuserId())
                .append("username", getUsername())
                .append("userphone", getUserphone())
                .append("description", getDescription())
                .append("expectedtime", getExpectedtime())
                .append("state", getState())
                .append("createtime", getCreatetime())
                .append("clientId", getClientId())
                .append("clientName", getClientName())
                .append("distributetime", getDistributetime())
                .append("completetime", getCompletetime())

                .append("houseinfoName", getHouseinfoName())

                .toString();
    }
}
